import React from 'react'
import {Route, IndexRoute, IndexRedirect} from 'react-router'
import {
    App,
    NotFoundPage,
    Main,
    Welcome,
    Page3,
    Login,
    ListUserPage,
    ListResource,
    UserManager,
    ResourceManager,
    MenuTableTree,
    ListRolePage,
    ListFactoryPage,
    ListRegionPage,
    ListWorkareaPage,
    ListLocationPage,
    ListDockPage,
    AreaManager,
    WareHouse,
    ListProductCombPage,
    ProductGroupManager,
    ListMdPackage,
    ProductStorageTypeManage,
    ListCustomerPage,
    UserDataauthTypeManage,
    UserDataAuthManage,
    UserResourceManage,
    ListSerialrulePage,
    ListWaverulePage,
    CompatibleManage,
    ListProductPage,
    ListMaterialExemptionPage,
    ListMdgrotypePage,
    ListMdmaterialmrpPage,
    ListMdvalidwkposPage,
    ListMdsendspotPage,
    DataText,
    ListStructurePage,
    ListHandUserLockPage,
    LoginLogPage,
    ListGroupPage,
    ListProStroagePage,
    ListProOrderInSnPage,
    ListProScannerInSnPage,
    ListProModelPage,
    ContractPage,
    ListProStroageSnPage,
    ListProCountingTask,
    ListProHandInPage,
    ListSupplierPage,
    ListProSellOutPage,
    ListProSellOutSnPage,
    ListProCountingDifference,
    ListProHandOutPage,
    ListProHandOutSnPage,
    ListProScrapOutSnPage,
    Health,
    ServerConsume,
    Mes,
    ListTeamPage,
    ListProCheckInPage
} from './containers'
import {
    TableTree,
    ListBoxTest,
    Test,
    SettingPage,
    SettingPageTab,
    ListAndTabs,
    TreeAndForm,
    CustomForm,
    DoubleList,
    FormComponent,
    Page2,
    ModalTransfer
} from './example'

export default (
    <Route path="/" component={App}>
        <IndexRoute component={Login} />
        <Route path='login' component={Login} />

        <Route path="wmslogin" component={Mes}/>

        <Route path="main" component={Main}>
            <IndexRoute component={Welcome} />
            {/*=================例子=======================*/}
            <Route path='listResource' component={ListResource} />
            <Route path='page2' component={Page2} />
            <Route path='page3' component={Page3} />
            <Route path='settingPage' component={SettingPage} />
            <Route path='TreeAndForm' component={TreeAndForm} />
            <Route path='menuTableTree' component={MenuTableTree} />
            <Route path='tableTree' component={TableTree} />
            <Route path='listBoxTest' component={ListBoxTest} />
            <Route path='test' component={Test} />
            <Route path='SettingPageTab' component={SettingPageTab} />
            <Route path='listAndTabs' component={ListAndTabs} />
            <Route path='CustomForm' component={CustomForm} />
            <Route path='FormComponent' component={FormComponent} />
            <Route path='doubleList' component={DoubleList} />
            <Route path='ModalTransfer' component={ModalTransfer} />
            
            {/*正式*/}
            {/* 权限page */}
            {/* 资源 */}
            <Route path='auth/resource' component={ResourceManager} />
             {/* 工厂 */}
            <Route path='auth/factory' component={ListFactoryPage} />
             {/* 工厂组 */}
            <Route path='auth/factoryGroup' component={ListGroupPage}/>
             {/* 用户 */}
            <Route path='auth/user' component={ListUserPage} />
             {/* 角色 */}
            <Route path='auth/role' component={ListRolePage} />
             {/* 登陆日志 */}
            <Route path='auth/log/login' component={LoginLogPage} />  
            {/* 数据权限类型   */}
            <Route path='auth/data/type' component={UserDataauthTypeManage} />
             {/* 数据权限查询 */}     
            <Route path='auth/data' component={UserDataAuthManage} />
            {/* 用户资源查询 */}
            <Route path='auth/userresource' component={UserResourceManage} />
            {/* 手持用户解锁 */}
            <Route path='auth/handuser' component={ListHandUserLockPage} />

            {/* 基础数据page */}
            {/* 仓库管理 */}
            <Route path='data/warehouse' component={WareHouse} />
            {/* 区域管理 */}
            <Route path='data/region' component={ListRegionPage} />
            {/* 库区管理 */}
            <Route path='data/area' component={AreaManager} />
            {/* 库位管理 */}
            <Route path='data/location' component={ListLocationPage} />
            {/* 工作区管理 */}
            <Route path='data/workarea' component={ListWorkareaPage} />
            {/* 月台管理 */}
            <Route path='data/dock' component={ListDockPage} />
            {/* 数据字典 */}
            <Route path='data/dict' component={DataText} />
            {/* 合同管理 */}
            <Route path='data/contract' component={ContractPage} />
            {/* 成品型号管理 */}
            <Route path='data/promodel' component={ListProModelPage} />
            {/* 班组管理 */}
            <Route path='data/team' component={ListTeamPage} />
            {/* 型号管理 */}
            <Route path='data/supplier' component={ListSupplierPage} />

            {/* 健康管理 */}
            <Route path='monitor/health' component={Health} />
            <Route path='monitor/server/consume' component={ServerConsume} />
            

            {/* 暂时没用的page */}
            <Route path='productComb' component={ListProductCombPage} />
            <Route path='md/productgroup' component={ProductGroupManager} />
            <Route path='mdpackage' component={ListMdPackage} />
            <Route path='md/productstoragetype' component={ProductStorageTypeManage} />
            <Route path='md/customer' component={ListCustomerPage} />
            <Route path='serialrule' component={ListSerialrulePage} />
            <Route path='waverule' component={ListWaverulePage} />
            <Route path='md/compatible' component={CompatibleManage} />
            <Route path='product' component={ListProductPage} />
            {/*特殊物料*/}
            <Route path='materialexemption' component={ListMaterialExemptionPage} />
            {/*采购组是否下线结算*/}
            <Route path='listMdgrotypePage' component={ListMdgrotypePage} />
            {/* 特殊物料采购组属性*/}
            <Route path='listMdmaterialmrpPage' component={ListMdmaterialmrpPage} />
            {/*接收工位维护对照*/}
            <Route path='listMdvalidwkposPage' component={ListMdvalidwkposPage} />
            {/*Sap库存地点*/}
            <Route path='listMdsendspotPage' component={ListMdsendspotPage} />
           
			{/*实验室管理*/}
            <Route path='limsStructure' component={ListStructurePage} />
            


            {/*成品库内管理AInsideWareHouse*/}
            {/*成品库存*/}
            <Route path='PInsideWareHouse/ListProStroagePage' component={ListProStroagePage} />
            {/*成品库存明细*/}
            <Route path='PInsideWareHouse/ListProStroageSnPage' component={ListProStroageSnPage} />
            {/*成品盘点*/}
            <Route path='PInsideWareHouse/ListProCountingTask' component={ListProCountingTask} />
            {/*成品盘点差异*/}
            <Route path='PInsideWareHouse/ListProCountingDifference' component={ListProCountingDifference} />

            {/*成品入库管理 ProductIntoWarehouse*/}
            {/*成品下线入库明细查询*/}
            <Route path='PIntoWareHouse/ListProOrderInSnPage' component={ListProOrderInSnPage} />
            {/*成品扫描入库明细查询*/}
            <Route path='ProductIntoWarehouse/ListProScannerInSnPage' component={ListProScannerInSnPage} />
            {/*成品条码生成登记*/}
            <Route path='ProductIntoWarehouse/ListProCheckInPage' component={ListProCheckInPage} />
            {/*成品手工入库任务*/}
            <Route path='PIntoWareHouse/ListProHandInPage' component={ListProHandInPage} />

            {/*成品出库管理 ProductOutWarehouse*/}
            {/*成品销售出库查询*/}
            <Route path='POut/ListProSellOutPage' component={ListProSellOutPage} />
            {/*成品销售出库明细查询*/}
            <Route path='POut/ListProSellOutSnPage' component={ListProSellOutSnPage} />
            {/*成品手工出库查询*/}
            <Route path='POut/ListProHandOutPage' component={ListProHandOutPage} />
            {/*成品手工出库明细查询*/}
            <Route path='POut/ListProHandOutSnPage' component={ListProHandOutSnPage} />
            {/*成品报废出库明细查询*/}
            <Route path='POut/ListProScrapOutSnPage' component={ListProScrapOutSnPage} />
            
        </Route>

        <Route path="*" component={NotFoundPage}/>
    </Route>

);
